package chapter15;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2019/3/14 10:24
 */
class ThreeTuple<A,B,C> extends TwoTuple<A,B>{
    public final C c;

    public ThreeTuple(A first, B second, C c) {
        super(first, second);
        this.c = c;
    }
}

public class Tuple {
    static TwoTuple<String ,Integer> f(){
        return new TwoTuple<>("test", 122);
    }

    static ThreeTuple<String, String, Integer> g(){
        return new ThreeTuple<>("test", "three", 123);
    }

    public static void main(String[] args) {

    }
}
